
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 报警类型
 * </p>
 *
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum AlarmTypeEnum {

    ONE("1", "紧急报警,触动报警开关后触发","",""),
    TWO("2", "超速报警","",""),
    THREE("3", "疲劳驾驶报警","",""),
    FOUR("4", "危险驾驶行为报警","",""),
    FIVE("5", "GNSS模块发生故障报警","",""),
    SIX("6", "GNSS天线未接或被剪断报警","",""),
    SEVEN("7", "GNSS天线短路报警","",""),
    EIGHT("8", "终端主电源欠压报警","",""),
    NINE("9", "终端主电源掉电报警","",""),
    TEN("10", "终端LCD或显示器故障报警","",""),
    ELEVEN("11", "TTS模块故障报警","",""),
    TWELVE("12", "摄像头故障报警","",""),
    THIRTEEN("13", "道路运输证IC卡模块故障报警","",""),
    FOURTEEN("14", "超速预警","",""),
    FIFTEEN("15", "疲劳驾驶预警","",""),
    SIXTEEN("16", "违规行驶报警","",""),
    SEVENTEEN("17", "胎压预警","",""),
    EIGHTEEN("18", "右转盲区异常报警","",""),
    NINETEEN("19", "当天累计驾驶超时报警","",""),
    TWENTY("20", "超时停车报警","",""),
    TWENTY_ONE("21", "进出区域报警","",""),
    TWENTY_TWO("22", "进出路线报警","",""),
    TWENTY_THREE("23", "路段行驶时间不足/过长报警","",""),
    TWENTY_FOUR("24", "路线偏离报警","",""),
    TWENTY_FIVE("25", "车辆vss故障","",""),
    TWENTY_SIX("26", "车辆油量异常报警","",""),
    TWENTY_SEVEN("27", "车辆被盗报警(通过车辆防盗器)","",""),
    TWENTY_EIGHT("28", "车辆非法点火报警","",""),
    TWENTY_NINE("29", "车辆非法位移报警","",""),
    THIRTY("30", "碰撞侧翻报警","",""),
    THIRTY_ONE("31", "侧翻预警","","");
    private final String value;
    private final String description;
    private final String descriptionEn;
    private final String descriptionSingapore;

    public static AlarmTypeEnum find(String val) {
        for (AlarmTypeEnum dataScopeEnum : AlarmTypeEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
